#include <iostream>
#include <string>   // string 支持
using namespace std;




/*


		P14
*/
int main()
{
	char a = 'c';
	bool c = true;
	
	//C 风格的字符串
	char str1[] = "hahahahahaha";	

	// C++ 字符串
	string str2 = "ahahahahahaha";

	cout << "a = " << a << endl;

	cout << "sizeof(a) = " << sizeof(char) << endl;

	// 换行符
	cout << "hello world\n";

	//输出字符串
	cout << str1 << endl;
	cout << str2 << endl;

	cout << "sizeof(string) = " << sizeof(string) << endl;
	// 输出反斜\字符
	cout << "\\ \n";

	//输出bool类型
	cout << c << endl;
	
	// 输出bool类型所占的字节
	cout << "sizeof(bool) = " << sizeof(bool) << endl;

	/*查看  变量a 表示字符的ASCII码  a = 97 A = 65*/
	cout << (int)a << endl;

	return 0;
}

